Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.

Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

FACT(X) → ZERO(X)
FACT(X) → IF(zero(X), n__s(0), n__prod(X, fact(p(X))))
PROD(s(X), Y) → ADD(Y, prod(X, Y))
ADD(s(X), Y) → ADD(X, Y)
FACT(X) → P(X)
ACTIVATE(n__s(X)) → S(X)
IF(false, X, Y) → ACTIVATE(Y)
FACT(X) → FACT(p(X))
IF(true, X, Y) → ACTIVATE(X)
ACTIVATE(n__prod(X1, X2)) → PROD(X1, X2)
PROD(s(X), Y) → PROD(X, Y)
ADD(s(X), Y) → S(add(X, Y))

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ EdgeDeletionProof

Q DP problem:
The TRS P consists of the following rules:

FACT(X) → ZERO(X)
FACT(X) → IF(zero(X), n__s(0), n__prod(X, fact(p(X))))
PROD(s(X), Y) → ADD(Y, prod(X, Y))
ADD(s(X), Y) → ADD(X, Y)
FACT(X) → P(X)
ACTIVATE(n__s(X)) → S(X)
IF(false, X, Y) → ACTIVATE(Y)
FACT(X) → FACT(p(X))
IF(true, X, Y) → ACTIVATE(X)
ACTIVATE(n__prod(X1, X2)) → PROD(X1, X2)
PROD(s(X), Y) → PROD(X, Y)
ADD(s(X), Y) → S(add(X, Y))

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We deleted some edges using various graph approximations

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
QDP
          ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

FACT(X) → IF(zero(X), n__s(0), n__prod(X, fact(p(X))))
ADD(s(X), Y) → ADD(X, Y)
PROD(s(X), Y) → ADD(Y, prod(X, Y))
ACTIVATE(n__s(X)) → S(X)
FACT(X) → FACT(p(X))
IF(true, X, Y) → ACTIVATE(X)
ACTIVATE(n__prod(X1, X2)) → PROD(X1, X2)
ADD(s(X), Y) → S(add(X, Y))
FACT(X) → ZERO(X)
FACT(X) → P(X)
IF(false, X, Y) → ACTIVATE(Y)
PROD(s(X), Y) → PROD(X, Y)

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 3 SCCs with 9 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
QDP
                ↳ QDPOrderProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ADD(s(X), Y) → ADD(X, Y)

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


ADD(s(X), Y) → ADD(X, Y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
ADD(x1, x2)  =  ADD(x1)
s(x1)  =  s(x1)

Lexicographic Path Order [19].
Precedence:
s1 > ADD1

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
              ↳ QDP
              ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
QDP
                ↳ QDPOrderProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROD(s(X), Y) → PROD(X, Y)

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


PROD(s(X), Y) → PROD(X, Y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
PROD(x1, x2)  =  PROD(x1)
s(x1)  =  s(x1)

Lexicographic Path Order [19].
Precedence:
s1 > PROD1

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
              ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ EdgeDeletionProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

FACT(X) → FACT(p(X))

The TRS R consists of the following rules:

fact(X) → if(zero(X), n__s(0), n__prod(X, fact(p(X))))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
prod(0, X) → 0
prod(s(X), Y) → add(Y, prod(X, Y))
if(true, X, Y) → activate(X)
if(false, X, Y) → activate(Y)
zero(0) → true
zero(s(X)) → false
p(s(X)) → X
s(X) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.